debug capture data physical autostop

This command provides support for starting a debug-traffic capture on the device's physical network interfaces and allowing it to run until a user-defined event. This event can be a Syslog message or an interface state-change.

All physical targets (TFTP, FTP, and USB), and SSH retrieval are supported, as well as regular and cyclic-buffer modes. When combined with cyclic-buffer mode, this command makes diagnosis of network problems easier.

Syntax

debug capture data physical auto-stop {event|keep|send} syslog <message>
debug capture data physical auto-stop event state-change <interface>
debug capture data physical auto-stop event state-change any
debug capture data physical auto-stop {send <IP address>|keep}
no debug capture data physical auto-stop 

Arguments

Description

auto-stop

Enables auto-stop capture on predefined events.

event – Selects events
keep –  Keeps capture for SSH retrieval
send - Sends capture to the TFTP/FTP server

<interface>

Use one of the following:

eth-lan
eth-wan
cellular-wan
shdsl-wan
t1-wan
dsl-wan

depending on the hardware capabilities of the device.

This command may be issued multiple times to capture data from several interfaces at once.

Default

By default, capture is inactive.

Command Mode

Enable

Related Commands

NA

Examples:

The following are examples of how this command can be used.

Defines the Syslog message event, upon which the device stops the debug capture:
# debug capture data physical auto-stop event syslog "<message>"
Defines the state change on a specific interface, upon which the device stops the debug capture:
# debug capture data physical auto-stop event state-change <interface, e.g., GigabitEthernet 0/0>
Defines a state change on any interface, upon which the device stops the debug capture:
# debug capture data physical auto-stop event state-change any
Defines what to do with the debug capture when it is automatically stopped:
# debug capture data physical auto-stop {send <IP address>|keep}

Where:

send: sends the capture to the defined IP address
keep: saves the capture on the device for later retrieval
Disables the automatic stopping feature for debug captures:
# no debug capture data physical auto-stop